package com.zongxingh.falcon.logger.constant;

/**
 * Introduction:  日志级别枚举
 * Package Name:  com.zongxingh.logger.enums
 * Project Name:  log-stream
 * Author:  zongxingh
 * Email： zongxingh@163.com
 * Tel: 157*****778
 * Create Time:  2020/9/11 11:28
 */
public enum LoggerLevel {
    /**
     * 日志级别枚举
     */
    ERROR(40, "ERROR"),
    WARN(30, "WARN"),
    INFO(20, "INFO"),
    DEBUG(10, "DEBUG"),
    TRACE(0, "DEBUG");

    private int levelInt;
    private String levelStr;

    private LoggerLevel(int i, String s) {
        this.levelInt = i;
        this.levelStr = s;
    }

    public int toInt() {
        return this.levelInt;
    }

    @Override
    public String toString() {
        return this.levelStr;
    }
}
